#include <stdio.h>

void switchExample(int i) {
    switch(i) {
        case 1:
        case 2: printf("\t=> %d\n", i); break;
    }
}

void main()
{
    int i;

    for (i = 3; i > 0; i--) {
        printf("i = %d\n", i);
        switchExample(i);
    }

    switchExample(1);

}

/*
output:
    i = 3
    i = 2
            => 2
    i = 1
            => 1
            => 1
*/